package com.eight.qianTeacher.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.eight.common.pojo.*;
import com.eight.qianTeacher.vo.ObjVo;
import com.eight.qianTeacher.vo.SubjectVo;

import java.util.List;

/**
 * @program: qy8-education
 * @description: QianTeacherService
 * @author: 韩宗耀
 * @create: 2023-06-02 15:53
 **/
public interface QianTeacherService {
    EduTeacher findTeacherByMobile(String mobile);

    Integer updateTeacherByMobile(EduTeacher eduTeacher);

    IPage<EduCourse> getCourseByTeacherPhone(Integer pageCurrent, Integer pageSize,String mobile,String checkStatus);

    Integer changeStatus(EduCourse eduCourse);

    IPage<EduSubject> findSubjectById(Integer pageCurrent, Integer pageSize,SubjectVo subjectVo);

    List<EduSubject> findPidById(String id);

    String updateCourseSubject(ObjVo objVo);

    List<EduChapter> findChapterById(String courseId);

    List<EduVideo> insertChapterWithCourseId(EduVideo eduVideo);

    Integer deleteChapterWithCourseId(EduChapter eduChapter);

    List<EduVideo> findAllVideo(String chapterId);

    Integer insertVideo(EduVideo eduVideo);

    Integer updateVideo(EduVideo eduVideo);

    Integer deleteById(String id,Integer sort,String chapterId);
}
